const Multer = require('koa-multer')
const { AVATAR_PATH } = require('../../app/file-path')

// 头像上传
const uploadAvatar = Multer({ dest: AVATAR_PATH })
const handleAvatar = uploadAvatar.single('avatar')

module.exports = {
  handleAvatar
}
